
		<!-- BEGIN SIDEBAR -->
    

	<!-- BEGIN CONTAINER -->

	<div class="page-container" id="left_box">

		<div class="page-sidebar nav-collapse collapse">

			<!-- BEGIN SIDEBAR MENU -->        

			<ul class="page-sidebar-menu">

				<li>

					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->

					<div class="sidebar-toggler hidden-phone"></div>

					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->

				</li>

		        <li class="start " data-id="1">

					<a href="/Index/index">

						<i class="icon-home"></i> 

						<span class="title">首页</span>

						<span class="selected"></span>

					</a>

				</li>
				<?php	
					$this->GroupModel     = new GroupModel();
					$this->AuthorityModel = new AuthorityModel();
					$this->Session        = Yaf_Registry::get("session");
					$authority_user       = $this->Session->user_info;
					$group_info           = $this->GroupModel->selectGroupInfo();
					foreach ($group_info as $key => $value) {
						if($authority_user[0]['group_id'] == $value['group_id'] ){
							if( $value['name'] == '管理员' || $value['name'] == '主管')	{

							
 echo <<< EOF
								<li class="" data-id="2">

					<a href="javascript:;">

						<i class="icon-group"></i> 

						<span class="title">用户管理</span>
				        
				        <span class="arrow "></span>
					
					</a>

					<ul class="sub-menu">

				        <li data-id="21" ><a href="/User/list">用户列表</a></li>

						<li data-id="22" ><a href="/Group/list">分组列表</a></li>

						<li data-id="23" ><a href="/Authority/list">权限列表</a></li>

					</ul>

		        </li>      
EOF;
						}}
					}

				?>

				<!-- <li class="" data-id="2">

					<a href="javascript:;">

						<i class="icon-group"></i> 

						<span class="title">用户管理</span>
				        
				        <span class="arrow "></span>
					
					</a>

					<ul class="sub-menu">

				        <li data-id="21" ><a href="/User/list">用户列表</a></li>

						<li data-id="22" ><a href="/Group/list">分组列表</a></li>

						<li data-id="23" ><a href="/Authority/list">权限列表</a></li>

					</ul>

		        </li> -->

				<li class="  " data-id="3">

					<a href="javascript:;">

						<i class="icon-file-text"></i> 

						<span class="title">文章管理</span>

				        <span class="arrow "></span>

					</a>

					<ul class="sub-menu">

			        	<li  data-id="31"><a href="/Article/list">文章列表</a></li>
			        
			        	<li data-id="32" ><a href="/Typical/list">类型列表</a></li>

					</ul>

		        </li>

				<li class=" " data-id="4">

					<a href="javascript:;">

						<i class="icon-cogs"></i> 

						<span class="title">采集管理</span>

				        <span class="arrow "></span>

					</a>

					<ul class="sub-menu">
				        
				        <li data-id="44" ><a href="/Address/list">采集网站列表</a></li>
				        <li data-id="41" ><a href="/Robots/list">机器人列表</a></li>  
				       <!--  <li data-id="42" ><a href="/Source/list">采集源列表</a></li>
				        <li data-id="43" ><a href="/Plan/list">采集计划列表</a></li> -->	
					</ul>

		        </li>
		        <?php	
					$this->GroupModel     = new GroupModel();
					$this->AuthorityModel = new AuthorityModel();
					$this->Session        = Yaf_Registry::get("session");
					$authority_user       = $this->Session->user_info;
					$group_info           = $this->GroupModel->selectGroupInfo();
					foreach ($group_info as $key => $value) {
						if($authority_user[0]['group_id'] == $value['group_id'] ){
							if( $value['name'] == '管理员' || $value['name'] == '主管')	{
 echo <<< EOF

				<li class=" " data-id="5">

					<a href="javascript:;">

						<i class="icon-bar-chart"></i> 

						<span class="title">报表管理</span>

				        <span class="arrow "></span>

					</a>

					<ul class="sub-menu">

			          	<li  data-id="51" ><a href="/Report/list">推送报表</a></li>

					  	<li  data-id="52"><a href="/Collection/list">采集报表</a></li>
					  	<li  data-id="53"><a href="/Details/list">用户报表</a></li>
					  	<li  data-id="54"><a href="/Userpush/list">用户推送报表</a></li>

					</ul>

		        </li>

				<li class=" " data-id="6">

					<a href="javascript:;">

						<i class="icon-table"></i> 

						<span class="title">日志管理</span>

            			<span class="arrow "></span>

					</a>

					<ul class="sub-menu">

            			<li  data-id="61"><a href="/Logs/user">操作日志</a></li>

				    	<li  data-id="62"><a href="/Logs/push">推送日志</a></li>

				    	<li  data-id="63"><a href="/Logs/coll">采集日志</a></li>

				    	<li  data-id="64"><a href="/Logs/login">登录日志</a></li>

					</ul>

				</li>
EOF;
		}
	}
}

foreach ($group_info as $key => $value) {
						if($authority_user[0]['group_id'] == $value['group_id'] && $value['name'] == '管理员' ){
 echo <<< EOF
				<li class=" " data-id="7">

					<a href="javascript:;">

						<i class="icon-table"></i> 

						<span class="title">网站管理</span>

				        <span class="arrow "></span>

					</a>

					<ul class="sub-menu">

				        <li  data-id="71"><a href="/Website/list">网站列表</a></li>

					</ul>

				</li>
EOF;
		}
	}
?>
				<li class=" " data-id="8">

					<a href="javascript:;">

						<i class="icon-table"></i> 

						<span class="title">栏目管理</span>

				        <span class="arrow "></span>

					</a>

					<ul class="sub-menu">

				        <li  data-id="81"><a href="/Category/list">信息产业</a></li>
				        <!-- <li  data-id="82"><a href="/Two/list">电子商务</a></li> -->
				        <li  data-id="83"><a href="/Flourish/list">中华盛世</a></li>
				  <!-- <li ><a href="/Push/report">报表推送</a></li> -->
					</ul>
				</li>

				<li class=" " data-id="9">

					<a href="javascript:;">

						<i class="icon-user"></i> 

						<span class="title">个人管理</span>

				        <span class="arrow "></span>

					</a>

					<ul class="sub-menu">

			        	<li data-id="91" ><a href="/User/personInfo">个人信息</a></li>

					</ul>

				</li>

			</ul>

			<!-- END SIDEBAR MENU -->

		</div>
<script src="/public/js/jquery-1.10.1.min.js" type="text/javascript"></script>
<script>
$(function(){
	if($('#thispage').attr('id')){
		var _page = $('#thispage');
		var id = _page.data('id');
		var _li = $('#left_box li');
		$('#left_box li[data-id='+ id +']').addClass('active');
		var idStr = id.toString();
		var parent_id = idStr.substring(0,1);
		$('#left_box li[data-id='+ parent_id +']').addClass('active open').siblings().removeClass('active open').end().find('.arrow').addClass('open');
	}
})
</script>
		<!-- END SIDEBAR -->

